#include <REGX52.H>
#include <INTRINS.H>
void Delay(unsigned int ms)
{
	unsigned int t=0;
	while(t<ms)
	{
		unsigned char i, j;

		_nop_();
		i = 2;
		j = 199;
		do
		{
			while (--j);
		} 	while (--i);
			t++;
		}
}
void main()
{
	P2=0xFE;//1111 1110
	Delay(50);
	P2=0xFD;
	Delay(50);
	P2=0xFB;
	Delay(50);
	P2=0xF7;
	Delay(50);
	P2=0xEF;//1111 1110
	Delay(50);
	P2=0xDF;
	Delay(50);
	P2=0xBF;
	Delay(50);
	P2=0x7F;
	Delay(50);
}